﻿<%@ Page Title="" Language="C#" MasterPageFile="~/admin/Admin.Master" AutoEventWireup="true" CodeBehind="editCategory.aspx.cs" Inherits="PHTShop.admin.editCategory" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
 <script type="text/javascript">
     $(function () {

         $('#<%=Button1.ClientID %>').click(function () {
             var catEn = $('#<%=CatName_en.ClientID %>').val();
             var catFr = $('#<%=CatName_fr.ClientID %>').val();
             var catGr = $('#<%=CatName_gr.ClientID %>').val();
             if (catEn == "" && catFr == "" && catGr == "") {
                 $('#<%=labelError.ClientID %>').text("Category name can not be empty");

                 return false;
             }
             else {
                 return true;
             }


         });



     })
    </script>
  
 <div id="title" class="b2">
   <ajaxToolkit:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
    
    </ajaxToolkit:ToolkitScriptManager>
        <h2>
            Edit Category</h2>
       
    </div>
    <p>
    </p>
      <ajaxToolkit:TabContainer ID="TabContainer1" runat="server" Height="100px" ActiveTabIndex="0">
            <ajaxToolkit:TabPanel HeaderText="English" ID="TabPanel1" runat="server">
                <ContentTemplate>
                    <asp:Label ID="Label1" runat="server" Text="Category Name"></asp:Label> <input type="text" title="Fusce elementum" id="CatName_en" name="field1b" class="text" runat="server"/>
                </ContentTemplate>
            </ajaxToolkit:TabPanel>

            <ajaxToolkit:TabPanel HeaderText="France" ID="TabPanel2" runat="server">
                <ContentTemplate>
                    <asp:Label ID="Label2" runat="server" Text="Category Name"></asp:Label>  <input type="text" title="Fusce elementum" id="CatName_fr" name="field1b" class="text" runat="server"/>
                </ContentTemplate>
            </ajaxToolkit:TabPanel>

            <ajaxToolkit:TabPanel HeaderText="Germany" ID="TabPanel3" runat="server">
                <ContentTemplate>
                    <asp:Label ID="Label3" runat="server" Text="Category Name"></asp:Label>      <input type="text" title="Fusce elementum" id="CatName_gr" name="field1b" class="text" runat="server"/>
                </ContentTemplate>
            </ajaxToolkit:TabPanel>
        </ajaxToolkit:TabContainer>
           <asp:Label ID="labelError" runat="server" Text="" ForeColor="Red"></asp:Label>
        <br />
        <asp:Button CssClass="css_btn_class" ID="Button1"  runat="server" Text="Save Category" 
            onclick="Button1_Click" onclientclick="check()" />
</asp:Content>
